package com.epam.properties_loader;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;


public class PropertiesHelper {
	private Properties props=new Properties();
	
	public PropertiesHelper() {
		try {
			props.load(new FileInputStream(System.getProperty("user.dir")+
					File.separator+"src"+File.separator+"main"+File.separator+
					"resources"+File.separator+"props.properties"));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public Properties getProperties() {
		return props;
	}
	
}
